Add Landsat 8 Ice Speed of Antarctica (LISA), Version 1#138
Merged
weiji14 merged 3 commits intoegu2019_poster_figsfrom May 6, 2019
Merged
Add Landsat 8 Ice Speed of Antarctica (LISA), Version 1#138weiji14 merged 3 commits intoegu2019_poster_figsfrom
weiji14 merged 3 commits intoegu2019_poster_figsfrom
Conversation
|
Check out this pull request on ReviewNB: https://app.reviewnb.com/weiji14/deepbedmap/pull/138 Visit www.reviewnb.com to know how we simplify your Jupyter Notebook workflows. |
Adding LISA to gapfill MEASURES Ice Velocity later on. The actual file downloaded is a tar.gz archive which is quite large (882MB), but we only need one of the files inside the archive. More code to come later. Also, to support download of FTP files, I've replaced requests with urllib in the data_prep.download_to_path function. Requests library unpinned from Pipfile.
56abd45 to
6bcdb78
Compare
Extract the one specific geotiff file we want after downloading the big .tgz/.tar.gz archive file! Implementation is a bit hacky, and it feels as though now would be a good time to switch to using DVC but why learn an existing wheel when I can make one? Anyhow, this hack allows us to continue using the same data_list.yml file structure, and most of our download workflow remains the same. Surprisingly, even the complicated BAS ramadda URLs should work! Could extend this code to support .zip files in the future.
Allow MEASURES Ice Velocity to be properly gapfilled by LISA by converting the latter from metres/day to metres/year through multiplying by 365.25. Using Rasterio rio command-line for this... Note that actual Ice Velocity training tiles remain the same, as there is nothing to gapfill (yet). Tweaked the selective_tile function to print "... done!" when tiling is finished, and raise an error if there are still NaN values after gapfilling. Also made other small tweaks like using the correct MEaSUREs Antarctic Ice Flow doi and switched jupytext format from py:percent to py:hydrogen.
83f3db1 to
906ff7b
Compare
weiji14
added a commit
that referenced
this pull request
May 6, 2019
Closes #138 Add Landsat 8 Ice Speed of Antarctica (LISA), Version 1.
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding Landsat 8 Ice Speed of Antarctica (LISA), Version 1 with 750m spatial resolution. Used to fill in data gaps in the MEaSUREs) Ice Velocity 450m spatial resolution dataset (see also #20).
References:
TODO: